package online.longzipeng.mywebdemo.commen.exception;

import lombok.Getter;
import online.longzipeng.mywebdemo.enums.BaseEnum;

/**
 * @Author: lzp
 * @Date:2023/10/30
 * @description: 通用错误状态码
 */
@Getter
public enum ErrorCodeEnum implements BaseEnum<Integer> {

	// 通用错误状态码
	SUCCESS(0, "成功"),
	ERROR(-1, "失败"),

	// 用户相关异常  10001 ~ 10100
	USER_LOGIN_ERROR(1001,"账号或密码错误！"),
	;

	public final Integer value;
	public final String title;

	ErrorCodeEnum(Integer value, String title) {
		this.value = value;
		this.title = title;
	}

}
